Package eu.europa.ec.taxud.cesop.readers
Interface IPspXmlReader
-
- All Superinterfaces:
AutoCloseable,Iterator<XmlPaymentDataMsgPart>
- All Known Implementing Classes:
PspXmlReader
public interface IPspXmlReader extends Iterator<XmlPaymentDataMsgPart>, AutoCloseable
Iterative reader of Payment Service Provider xml files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetEstimatedContentSize()Gets estimated content size.XmlMessageSpecgetXmlMessageSpec()Returns parsed MessageSpec part.XmlPspgetXmlReportingPsp()Returns parsed MessageSpec part.XmlPaymentDataMsgPartnext()Parse the next part of payment data.-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, remove
-
-
-
-
Method Detail
-
getXmlMessageSpec
XmlMessageSpec getXmlMessageSpec()
Returns parsed MessageSpec part. Available at any point of iteration.- Returns:
- the xml message spec
-
getXmlReportingPsp
XmlPsp getXmlReportingPsp()
Returns parsed MessageSpec part. Available at any point of iteration.- Returns:
- the xml reporting psp
-
next
XmlPaymentDataMsgPart next()
Parse the next part of payment data. For every payee it first yields one or more parts withPaymentDataMsgPartContentType.REPORTED_TRANSACTIONStype. Then, after all payee transactions are produced, onePaymentDataMsgPartContentType.REPORTED_PAYEEpart is yielded.- Specified by:
nextin interfaceIterator<XmlPaymentDataMsgPart>
-
getEstimatedContentSize
long getEstimatedContentSize()
Gets estimated content size.- Returns:
- returns content size in bytes if available. If not, returns -1.
-
-